package com.stone.ssm.server.impl;

import com.stone.ssm.dao.UserMapper;
import com.stone.ssm.model.User;
import com.stone.ssm.server.IUserServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServerImpl implements IUserServer {

    @Autowired
    private UserMapper mapper;

    @Override
    public User getUserById(int userId) {
        return mapper.selectByPrimaryKey(userId);
    }
}
